package com.dfbz.demo01_OutputStream;

import java.io.FileOutputStream;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo07_写出换行 {
    public static void main(String[] args)throws Exception{

        FileOutputStream fos = new FileOutputStream("001.txt");

        byte[] words = {97,98,99,100,101};

        for (int i = 0; i < words.length; i++) {
            fos.write(words[i]);
            fos.write(System.getProperty("line.separator").getBytes());
        }


        fos.close();


    }
}
